package dormatory;

import java.io.*;

public class readAFile {
	public static void main (String[] arg) {
		try {
			File myFile = new File("fool.txt");
			FileReader fileReader = new FileReader(myFile);
			
			BufferedReader reader = new BufferedReader(fileReader);
			
			String line = null;
			while ((line= reader.readLine()) !=null) {
				System.out.println(line);
			}
			reader.close();
		} catch(Exception ex) {
			ex.printStackTrace();
		}
	}

}
